package com.panda.topic.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.panda.topic.entity.StudentTopic;
import com.panda.topic.entity.Topic;

public interface TopicMapper {

	int deleteByPrimaryKey(Long id);

	int insert(Topic record);

	int insertSelective(Topic record);

	Topic selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(Topic record);

	int updateByPrimaryKey(Topic record);

	Long findListCount(@Param("uid")Long uid, @Param("name") String name);
	List<Topic> findListLimit(@Param("offSet") Long offSet,@Param("pageSize") Long pageSize,@Param("uid")Long uid, @Param("name") String name);

	List<Topic> findAllTopic();

	List<StudentTopic> findStudentTopic(@Param("offSet")Long offSet, @Param("pageSize")Long pageSize, @Param("uid")Long uid, @Param("name")String name);

	Long findStudentTopicCount(@Param("uid")Long uid, @Param("name")String name);
}